#encoding=utf8
'''
Created on 2012-10-9

@author: Administrator
'''
from pub import Func
from pub.Config import Config
class Idiom(object):
    '''
    成语信息模型
    '''
    TABLE_NAME="sq_idiom"
    PRIMARY_KEY="Id"
    IDIOMID="Id"
    LETTER = "C_Char"
    PINYIN = "Py_Char"
    FIRSTLETTER = "FirstLetter"
    LASTLETTER = "LastLetter"
    FIRSTCHAR = "FirstChar"
    LASTCHAR = "LastChar"
    CREATED = "Created"
    UPDATED = "Updated"
    UNIKEY = "Unikey"
    def __init__(self,):
        '''
        Constructor
        '''
#        成语编号
        self.__Id = Config.I_SYS_ZERO
#        成语内容
        self.__CChar = Config.S_SYS_NONE
#        成语英文内容
        self.__PyChar = Config.S_SYS_NONE
#        成语首字母拼音
        self.__FirstLetter = Config.S_SYS_NONE
#        成语尾字母拼音
        self.__LastLetter = Config.S_SYS_NONE
#        成语首字
        self.__FirstChar = Config.S_SYS_NONE
#        成语尾字
        self.__LastChar = Config.S_SYS_NONE
#        创建时间
        self.__Created = Func.getNow()
#        更新时间
        self.__Updated = Func.getNow()
#        加密后的唯一确认key
        self.__Unikey = Config.S_SYS_NONE

    def get_id(self):
        return self.__Id


    def get_cchar(self):
        return self.__CChar


    def get_py_char(self):
        return self.__PyChar


    def get_first_letter(self):
        return self.__FirstLetter


    def get_last_letter(self):
        return self.__LastLetter


    def get_first_char(self):
        return self.__FirstChar


    def get_last_char(self):
        return self.__LastChar


    def get_created(self):
        return self.__Created


    def get_updated(self):
        return self.__Updated


    def get_unikey(self):
        return self.__Unikey


    def set_id(self, value):
        self.__Id = value


    def set_cchar(self, value):
        self.__CChar = value


    def set_py_char(self, value):
        self.__PyChar = value


    def set_first_letter(self, value):
        self.__FirstLetter = value


    def set_last_letter(self, value):
        self.__LastLetter = value


    def set_first_char(self, value):
        self.__FirstChar = value


    def set_last_char(self, value):
        self.__LastChar = value


    def set_created(self, value):
        self.__Created = value


    def set_updated(self, value):
        self.__Updated = value


    def set_unikey(self, value):
        self.__Unikey = value

        
        
